package model;

public class Rol_Reine extends Role{

	private static boolean firstQueen = true; 
	
	public Rol_Reine(){
		
	}
	
	public void linkToHote(Ind_Fourmi _fourmiHote){
		fourmiHote = _fourmiHote;
		fourmiHote.add_Action(new Act_Fou_Pondre(fourmiHote));
		evolve();
		if(!firstQueen){
			makeFourmiliere();
		}else{
			fourmiHote.initGrows();
			firstQueen = false;
		}		
	}
	
	private void evolve(){
		
		fourmiHote.setPoid(fourmiHote.getPoid()*25);
		fourmiHote.setLifeTime((1400+roleRandomSeed.nextInt(2200)));
		
	}
	
	private void makeFourmiliere(){		
		fourmiHote.setFourmiliere(new Fourmiliere(fourmiHote.getX(), fourmiHote.getY(),fourmiHote.getPoid()*100));
		fourmiHote.getFourmiliere().setReine(fourmiHote);
	}
	
}
